package com.kuaiyin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Schema(name = "DepartmentsDTO", description = "部门数据传输对象")
public class DepartmentsDTO  implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "部门ID")
    private Integer id;

    @NotBlank(message = "部门名称不能为空")
    @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "上级部门ID")
    private Integer parentId;

    @Schema(description = "状态：0-禁用 1-启用", defaultValue = "1")
    private Integer status;
}
